import request from "@/utils/request";

// 查询研发项目列表
export function listComResearch(query) {
  return request({
    url: "/basic-api/company/comResearch/com/list",
    method: "get",
    params: query,
  });
}

// 查询研发项目详细
export function getComResearch(id) {
  return request({
    url: "/basic-api/company/comResearch/com/" + id,
    method: "get",
  });
}

// 新增研发项目
export function addComResearch(data) {
  return request({
    url: "/basic-api/company/comResearch/com",
    method: "post",
    data: data,
  });
}

// 修改研发项目
export function updateComResearch(data) {
  return request({
    url: "/basic-api/company/comResearch/com",
    method: "put",
    data: data,
  });
}

// 删除研发项目
export function delComResearch(id) {
  return request({
    url: "/basic-api/company/comResearch/com/" + id,
    method: "delete",
  });
}
